package com.mylibrary.domain;

import java.util.Date;

public class Notice {
    private String topic;
    private String content;
    private String author;

    public Notice(String topic, String content, String author, Date createDate) {
        this.topic = topic;
        this.content = content;
        this.author = author;
        this.createDate = createDate;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    private Date createDate;

    public String getTopic() {
        return topic;
    }

    @Override
    public String toString() {
        return "Notice{" +
                "topic='" + topic + '\'' +
                ", content='" + content + '\'' +
                ", author='" + author + '\'' +
                ", createDate=" + createDate +
                '}';
    }

    public void setTopic(String topic) {
        this.topic = topic;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

}
